// Created by Administrator on 2015/11/27.

extends ../public/pretty_layout

mixin active(_name, _path)
    if(_path == path)
        li.active: a(href='#{_path}') #{_name}
    else
        li: a(href='#{_path}') #{_name}

block content
    include header
    div.container
        nav.navbar.navbar-inverse(role="navigation" style="margin-bottom:0;margin-top:20px")
            div
                ul.nav.navbar-nav
                    + active('个人资料', '/user/private/'+user.nick+'/update/info')
                    + active('修改头像', '/user/private/'+user.nick+'/update/portrait')
                    + active('修改密码', '/user/private/'+user.nick+'/update/password')
        div.wrapper-content
            block setting_content